<!--
  Copyright 2014-2019 the original author or authors.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<div class="gt-header">
  <div class="gt-header-lhs"
       ng-if="!layout.embeddedAgentRollup.display">
    <h1 class="gt-header-text">
      Flame graph
    </h1>
  </div>
  <div class="gt-header-lhs"
       ng-if="layout.embeddedAgentRollup.display">
    <div class="gt-header-text">
      {{layout.embeddedAgentRollup.display}}
    </div>
    <!-- don't use border to simulate vertical bar since this will jitter on reload (at least in Chrome)
         while chrome guesses the placement of the border based on default font and then it moves slightly
         once font is available -->
    <div class="gt-header-text gt-separator">
      |
    </div>
    <h1 class="gt-header-text">
      Flame graph
    </h1>
  </div>
</div>
<div class="gt-panel-overlay" ng-if="httpError">
  <!-- need top padding so message is not hidden under navbar -->
  <div ng-include src="'template/gt-http-error.html'" style="padding-top: 50px;"></div>
</div>
<div ng-if="filter" style="margin-bottom: 20px;">
  <div style="font-size: 20px; font-weight: bold;">
    Profile tree filter: {{filter}}
  </div>
  <div ng-if="parsingError" class="gt-red" style="margin-top: 10px; margin-bottom: -5px;">
    {{parsingError}}
  </div>
</div>
<div id="info" ng-if="!parsingError">
  Hover over a block for summary information. Click a block for details.
  <div class="svTooltip" id="svTooltip"></div>
</div>
<!-- margin-left: -22px is to counter default padding-left: 32px -->
<div gt-spinner
     gt-show="!loaded && !httpError"
     class="gt-left-aligned-spinner"
     style="margin-left: -22px;">
</div>
<div ng-if="chartNoData"
     style="display: table; width: 100%; height: 100%; margin-top: 50px;">
  <div style="display: table-cell; text-align: center; vertical-align: middle;">
    <div class="gt-chart-no-data">No data for this time period</div>
  </div>
</div>
<div id="chart" style="padding-top: 50px;">
</div>
